package com.eyas.im.protocol.protocol;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class StringProtocol implements Protocol<String> {
    private List<String> message;

    public StringProtocol(String message) {
        this.message = new ArrayList<>();
        this.message.add(message);
    }

    public StringProtocol() {
        this.message = new ArrayList<>();
    }

    @Override
    public List<String> getMessage() {
        return message;
    }
}
